package com.soulmate.gateway.filter;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.token.DefaultToken;
import org.springframework.security.core.token.Token;
import org.springframework.security.core.token.TokenService;
import org.springframework.stereotype.Component;

/**
 * @author huaiping
 */
@Component
public class GatewayTokenServiceImpl implements TokenService {

    @Override
    public Token allocateToken(String extendedInformation) {
        return new DefaultToken("111", System.nanoTime(), "");
    }

    @Override
    public Token verifyToken(String key) {
        return new DefaultToken("1111", System.nanoTime(), "");
    }
}
